//
//  main.m
//  ArchiveDemo
//
//  Created by shk on 14/12/3.
//  Copyright (c) 2014年 com.shk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ArchiveDataTest.h"
#import "CodingTest.h"
#import "SingleDemo.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
//        ArchiveDataTest *archiveDataTest = [[ArchiveDataTest alloc] init];
        /**单个对象归档测试**/
        //[archiveDataTest archiveData];
        //[archiveDataTest unAchiveData];

        /**多个对象归档测试**/
//        [archiveDataTest archiveMutabelData];
//        [archiveDataTest unArchiveMutabelData];

        //自定义对象归档测试
//        CodingTest *codingTest = [[CodingTest alloc] init];
//        [codingTest archiveCodingObject];
//        [codingTest unArchiveCodingObject];
        
        
        /**单例测试**/
        SingleDemo *singleDemo1 = [SingleDemo getSingleDemo];
        SingleDemo *singleDemo2 = [SingleDemo getSingleDemo];
        SingleDemo *singleDemo3 = [[SingleDemo alloc] init];
        SingleDemo *singleDemo4 = [SingleDemo copy];
        NSLog(@"%@", singleDemo1);
        NSLog(@"%@", singleDemo2);
        NSLog(@"%@", singleDemo3);
        NSLog(@"%@", singleDemo4);
        
        
    }
    return 0;
}
